package com.com;

public class FatherRunnable implements Runnable{

	Father father;
	
	public FatherRunnable(Father father) {
		this.father = father;
	}
	
	@Override
	public void run() {
		
		while (true) {
			
			System.out.println(Thread.currentThread().getName());
			
			this.father.doSomething();
			
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			
		}
		
	}

	
}
